﻿using System;

namespace MessagePack.Decoders
{
	// Token: 0x020000A2 RID: 162
	internal class Int16Int32 : IInt32Decoder
	{
		// Token: 0x06000297 RID: 663 RVA: 0x0000B74D File Offset: 0x00009B4D
		private Int16Int32()
		{
		}

		// Token: 0x06000298 RID: 664 RVA: 0x0000B755 File Offset: 0x00009B55
		public int Read(byte[] bytes, int offset, out int readSize)
		{
			readSize = 3;
			return (int)((short)((int)bytes[offset + 1] << 8 | (int)bytes[offset + 2]));
		}

		// Token: 0x040000C4 RID: 196
		internal static readonly IInt32Decoder Instance = new Int16Int32();
	}
}
